package xyz.wongs.gry.synx.file
/**
 * @ClassName
 * @Description
 * @author WCNGS@QQ.COM
 * @Github <a> https://github.com/rothschil</a>
 * @date 2020/12/21 10:58
 * @Version 1.0.0
 */

baseDir = new File('D:'+File.separator)

new File(baseDir,'mes.txt').eachLine {
    println(it)
}

new File(baseDir,'mes.txt').eachLine(){data,it->
    println("【行号】"+it+ " ;内容 "+ data)
}